

function test(curTypeSkillNum){

    let skillUIWidth=0.65
    let skillUIHeight=0.45

    let singleSkillIconSize=0.035
    let singleSkillIconPadding=0.01
    let singleSkillIconTextWidth=0.08
    let singleSkillHeihgt=singleSkillIconSize+singleSkillIconPadding   //icon+text+padding    0.035+0.03+0.02
    let rowNum=parseInt((skillUIHeight-singleSkillIconPadding*6)/singleSkillHeihgt ) //一行放几个
    console.log("rowNum:",rowNum)
    let px=0;
    let py=0;
    let firstRowTopPadding=0.07     //第一行的高度
    let firstColumnPadding=0.04
    curTypeSkillNum=curTypeSkillNum+1
    py=(curTypeSkillNum%rowNum-2)*singleSkillHeihgt*-1   //-2就是修正初始位置
    px= parseInt(curTypeSkillNum/rowNum+"")* (singleSkillIconPadding*4+skillUIWidth)
    let tx=px+firstColumnPadding   //目标x位置  技能块相对偏移+ 左padding

    console.log("??创建技能UI索引号[", curTypeSkillNum,"],tx:",tx," ,py:",py)
}


for(let i=0;i<19;i++){
    test(i)
}